from django.contrib.auth.models import User
from django.db import models
# from datetime import datetime

class UserProfile(models.Model):
    
    user = models.OneToOneField(User, related_name="User_Profile", db_column="user")
    address = models.CharField("Address", max_length=100)
    addressSend = models.CharField("Shipping Address", max_length=100)
    telephone = models.IntegerField("Telephone")
    mobilePhone = models.IntegerField("Mobile Phone", null=True, blank=True)
    
    
    class Meta:
        db_table = "userProfile"
        verbose_name = ("User Profile")
        verbose_name_plural = ("User Profiles")        
    
    def __unicode__(self):
        return self.user.username